package cn.wolfcode.mp.service;

import cn.wolfcode.mp.domain.Employee;
import cn.wolfcode.mp.query.EmployeeQuery;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import org.apache.ibatis.annotations.Param;

public interface IEmployeeService extends IService<Employee>{

    /**
     * 分页
     * @param qo
     * @return
     */
    IPage<Employee> queryPage(EmployeeQuery qo);

    Employee selectByUsername(String username);

    Employee login(@Param("username") String username, @Param("password") String password);
}
